#include<stdio.h>
void split(float x){
	int intpart=(int)x;
	float floatpart=x-intpart;
	printf("%d %f",intpart,floatpart);
}
int main(){
	float x;
	scanf("%f",&x);
	split(x);
	return 0;
}
